﻿using Nancy.Security;
using System.Collections.Generic;

namespace TaskManagementSystem
{
    public class UserIdentity : IUserIdentity
    {
        public UserIdentity(string userId, string userName, string[] claims)
        {
            this._userId = userId;
            this._userName = userName;
            this._claims = claims;
        }

        private string[] _claims = null;

        public IEnumerable<string> Claims
        {
            get
            {
                return _claims;
            }
        }

        private string _userName = "";

        public string UserName
        {
            get
            {
                return _userName;
            }
        }

        private string _userId = "";

        public string UserId
        {
            get
            {
                return _userId;
            }
        }
    }
}